package com.test.netty.consumer;

import com.test.netty.factory.ProxyFactory;
import com.test.netty.service.HelloService;
import com.test.netty.service.impl.HelloServiceImpl;

public class Consumer {

    public static void main(String[] args) {

        System.out.println(" ===========[Consumer started!!]=============");

        HelloService helloService = ProxyFactory.getProxy(HelloService.class, HelloServiceImpl.class);

        String result = helloService.sayHello("World");

        System.out.println("Consumer.result:" + result);
    }
}
